<?php 

	class Happening
	
	{
		function RacialImpact ($targetRace, $rankChange, $regionImpact, $nationImpact)
		{
			// $targetRace = Which race is being impacted
			// $rankChange = 0 means that the race is purged, -1 lowers the rank, 1 increases the rank
			// $regionImpact = 0 means that it is global for the nation, else ID
			
			if ($regionImpact == 0)
			{
				//select Racial Makeup string from MySQL where $nationImpact = Nation Id 
				
				//store (explode) string into an array ($racePop)
				
				//if ($racePop 
				
					// if current array position = $targetRace
				
			}
			else
			{
			}
			//select string from MySQL from region id 
			
			
		}
	}
?>


